vtd: Do not update-and-flush an IOMMU PTE if it does not change.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Jul 2010 16:41:53 +0000 (17:41 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 16 Jul 2010 16:41:53 +0000 (17:41 +0100)
commit41ea432fe037b0f9c887c93bf0aaa4b1f889983c
treec20af6db92f4f99ab8246ec033a6c334fd663c77
parent338666b9dfd5f35694e4df43364c20427f23f720
vtd: Do not update-and-flush an IOMMU PTE if it does not change.

There are cases of identical repeated calls to
iommu_map_page(). Flushing is slow, so it's worth detecting these and
bailing early.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/drivers/passthrough/vtd/iommu.c